{assign var=items_per_row value=2}

{include file="catalogs/catalog-info.tpl"}

{include file="content/list-filters.tpl"}
	
{if $content.data.items}
	<table cellspacing="5" border="0" width="">
	{foreach from=$content.data.items item=item name="list_content"}
		{if !(($smarty.foreach.list_content.iteration-1) % $items_per_row ) || $smarty.foreach.list_content.first}
			{if !$smarty.foreach.list_content.first}
			</tr>
			{/if}
			<tr>
		{/if}
		<td class="p10" width="320" valign="top">
			{if $item.type == 'news'}
				{include file="content/list-content-item-news.tpl"}
			{else}
				{include file="content/list-content-item.tpl"}
			{/if}
		</td>
		{if $smarty.foreach.list_content.last}
			</tr>
		{/if}
		
	{/foreach}
	</table>
	
	{if $content.pager && $show_pager}
		{include file='widget/pager.tpl' pager_content = $content.pager}
	{/if}
{else}
	<div class="align-c large p20"><b>Нет элементов</b></div>
{/if}
